using System.Web.Security;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Database.Repositories;
using Database.UnitOfWorkImplementation;
using Domain.UnitOfWork;
using Mestedur.Models.Membership;

namespace Mestedur.Models.WindsorModules
{
    public class UnitOfWorkInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Component.For<IUnitOfWorkFactory>().ImplementedBy<NHibernateUnitOfWorkFactory>());
        }
    }
}
